package com.cloudbroker.bcs.common.annotation;

import java.lang.annotation.*;

/**
 * Created by tianrui on 2016/8/23.
 */

/**
 * redis锁 注解
 * */

@Target({ ElementType.METHOD, ElementType.ANNOTATION_TYPE, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RedisMutex {

    /**
     * 默认value
     * */
    public String value() default "0";

    /**
     * 有效时间
     * */
    public int expireTime() default 1;

    /**
     * key
     * */
    public String key() default "";

}
